package com.yida.gwj.vote.outside.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yida.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lqq
 * @date 2023-03-10
 */
@ApiModel("投票结果详情导出模板")
public class GwjVoteResultDetailExcelVO implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty("投票标题")
	@Excel(name = "投票标题")
	private String voteTitle;

	@ApiModelProperty("投票人")
	@Excel(name = "投票人")
	private String ownerName;

	@ApiModelProperty("房屋坐落")
	@Excel(name = "房屋坐落")
	private String houseLocation;

	@ApiModelProperty("房号")
	@Excel(name = "房号")
	private String roomNum;

	@ApiModelProperty("投票项名称")
	@Excel(name = "投票项名称")
	private String itemName;

	@ApiModelProperty("选项名称")
	@Excel(name = "选项名称")
	private String optionName;

	@ApiModelProperty("投票时间")
	@Excel(name = "投票时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date voteTime;

	public String getVoteTitle() {
		return voteTitle;
	}

	public void setVoteTitle(String voteTitle) {
		this.voteTitle = voteTitle;
	}

	public String getOwnerName() {
		return ownerName;
	}

	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}

	public String getHouseLocation() {
		return houseLocation;
	}

	public void setHouseLocation(String houseLocation) {
		this.houseLocation = houseLocation;
	}

	public String getRoomNum() {
		return roomNum;
	}

	public void setRoomNum(String roomNum) {
		this.roomNum = roomNum;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public String getOptionName() {
		return optionName;
	}

	public void setOptionName(String optionName) {
		this.optionName = optionName;
	}

	public Date getVoteTime() {
		return voteTime;
	}

	public void setVoteTime(Date voteTime) {
		this.voteTime = voteTime;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("VoteResultDetailListDTO{");
		sb.append("voteTitle='").append(voteTitle).append('\'');
		sb.append(", ownerName='").append(ownerName).append('\'');
		sb.append(", houseLocation='").append(houseLocation).append('\'');
		sb.append(", roomNum='").append(roomNum).append('\'');
		sb.append(", itemName='").append(itemName).append('\'');
		sb.append(", optionName='").append(optionName).append('\'');
		sb.append(", voteTime=").append(voteTime);
		sb.append('}');
		return sb.toString();
	}
}
